package com.panda.multiple.tenant2.domain.po;

import com.baomidou.mybatisplus.annotation.*;
import lombok.*;

import java.io.Serializable;
import java.time.LocalDateTime;

@Setter
@Getter
@NoArgsConstructor
@Builder
@AllArgsConstructor
@TableName(value = "tbl_user")
public class User implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField(value = "name")
    private String name;
    @TableField(value = "nick_name")
    private String nickName;
    @TableField(value = "password")
    private String password;
    @TableField(value = "email")
    private String email;
    @TableField(value = "gender")
    private Integer gender;
    @TableField(value = "id_card")
    private String idCard;
    @TableField(value = "mobile_phone")
    private String mobilePhone;
    @TableField(value = "address")
    private String address;
    @TableField(value = "create_by")
    private Long createBy;
    @TableField(value = "update_by")
    private Long updateBy;
    @TableField(value = "create_time")
    private LocalDateTime createTime;
    @TableField(value = "update_time")
    private LocalDateTime updateTime;
    @TableField(value = "enable")
    private Boolean enable;
    @TableLogic
    @TableField(value = "deleted")
    private Boolean deleted;
    @Version
    @TableField(value = "version")
    private Integer version;
    @TableField(value = "tenant_id")
    private String tenantId;
}
